package com.test.study.shiro_demo.dao;

import com.test.study.shiro_demo.entity.TUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
public interface TUserDao {

    TUser getById(Integer uid);

    List<TUser> listByEntity(TUser tUser);

    TUser getByEntity(TUser tUser);

    List<TUser> listByIds(List<Integer> list);

    int insert(TUser tUser);

    int insertBatch(List<TUser> list);

    int update(TUser tUser);

    int updateByField(@Param("where") TUser where, @Param("set") TUser set);

    int updateBatch(List<TUser> list);

    int deleteById(Integer uid);

    int deleteByEntity(TUser tUser);
  
    int deleteByIds(List<Integer> list);
    
    int countAll();
    
    int countByEntity(TUser tUser);
    
}